International Capital Flows, External Assets and Output Volatility