Emerging economies struggle to contain capital outflows