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