The heads of four major global economic institutions warned on Friday that the war in the Middle East is posing growing risks to the world economy, with disruptions to oil shipments through the Strait of Hormuz driving down global inventories and threatening energy security ahead of peak summer demand.