The S&P 500 was largely unchanged on Tuesday, after a strong rally in the prior session, as investors sifted through a mixed batch of results from major retailers including Walmart and Home Depot.