The prospect of a revived trade war between Beijing and Washington is threatening to undermine this year’s blistering rally in Chinese stocks and weigh on the yuan.