UK inflation has had its sharpest month-on-month increase in two years following a rise in household energy bills.