LONDON—Stocks rose on Friday as investors clung to hopes the global economy would continue to grow despite the war in Ukraine and yet more evidence central banks will need to tighten policy fast to tame inflation. Data on Thursday showed U.S. inflation at a four-decade high, prompting traders to raise their bets on rate hikes from the Federal Reserve beginning next week. The Bank of England is also expected to tighten next week, especially after January’s economic growth numbers came in stronger than expected on Friday. A more hawkish than European Central Bank this week added to the sense central banks will not be deterred by the uncertainty wrought by the war in Ukraine and will tighten. But after another bruising and highly volatile few sessions in which stocks have swung wildly, some traders on Friday looked to buy back in as stocks headed for their fifth weekly loss on …