Chinese President Xi Jinping visited Shanghai for the first time since 2020, as his government steps up efforts to prop up the country’s economy and financial markets.