Macroprudential Policies and Financial Frictions