War, climate extremes, drought and soaring energy costs are increasingly combining to reduce agricultural output and raise food prices around the world.