China’s weakening currency has triggered an increase in the amount of cash leaving the country, according to analysis by Goldman Sachs Group.