Essays on Financial Frictions in Macroeconomic Models