CPI gas price index has surged 28% from a year ago, while overall energy costs are up nearly 18%, new inflation data shows.