Healthier food grew more expensive at twice the rate of less healthy options in the UK over the last two years, a study has found.