Foreign firms pull more money from China’s slowing economy