Inflation in the UK rose by 1.5% in the year to April, according to official figures.