Household and firm leverage, capital flows and monetary policy in a small open economy