Prices rose at 2.3% in the year to April, down from 3.2% the month before, official figures said.