(Reuters) - The S&P 500 and the Nasdaq hit record levels on Friday, the last day of the third quarter, helped by gains in technology and financial stocks.