U.S. stocks rebounded on Friday, a day after both the Dow Jones industrial average and the S&P 500 fell into correction territory.