S&P 500, Nasdaq close at record highs, cap best quarter in over a year - Reuters