Optimal Interest Rate Rules, Asset Prices and Credit Frictions