Beijing struggles to plug capital flight