Capital Flows to Developing Countries: Trends, Volatility and Policy Implications