Monetary and Macroprudential Policies to Manage Capital Flows