Monetary Policy, Capital Flows, and the Exchange Rate