U.S. stocks rebounded Friday, capping a volatile week during which investors responded to a flurry of corporate-earnings reports and economic indicators. The news offered at-times conflicting narratives on the nation’s economic outlook. The market receded Thursday when some of the biggest U.S. banks posted disappointing quarterly results only to rally, a day later, on data showing retail sales had climbed more than expected in June.