Even as the country has tried to lure global businesses keen to diversify into a fast-growing emerging market and, amid rising geopolitical tensions, away from China, many multinational companies are throwing in the towel.