Inflation continued to rise in April as consumer price growth has picked up due to the impact of the Iran war on energy markets and gas prices.