U.S. stocks finished higher as the S&P 500 registered a fresh record closing level in the last session of a volatile, holiday-shortened week.