Rising energy bills have pushed up UK inflation to its highest level since April.