The International Monetary Fund warned the energy shock sparked by the war will hit the UK harder than any other major economy.