Escalating inflation, the war in Ukraine and low consumer confidence are spelling headwinds for the global economy.