US market: S&P 500, Nasdaq hit records with strong data