Emerging markets only have themselves to blame for capital flight