S&P 500 hits new highs as AI momentum drives semiconductor gains