The S&P 500 and Nasdaq Composite rose slightly to hit record highs for the second consecutive day on Tuesday as GameStop and other “meme stocks” rallied.