The S&P 500 and Nasdaq tank as investors dump AI and tech stocks