The agency said increased energy prices contributed the most to the acceleration.