The Iran war has caused the biggest rise in global energy inflation in 25 years, according to calculations made by an economist tracking government data.