Inflation has risen a surprising amount - to the highest in nearly a year - official figures show.