Macroprudential Rules and Monetary Policy when Financial Frictions Matter