Stocks closed slightly higher on Friday afternoon as investors digested a final slate of corporate earnings and fresh economic data to close out the week.