Energy prices, driven by the war with Iran, accounted for more than 40% of the monthly increase as annual inflation reached 3.8%