Essays in macroeconomics : environments with informational and financial frictions