Foreign companies are under growing pressure in China from anti-corruption, security and other investigations as President Xi Jinping’s government tightens control over business, clashing with efforts to lure back investors after the pandemic.