Nasdaq, S&P 500 hit new highs