Inflation in the UK rose by 1.5% in the year to April, compared with 0.7% in March.