The S&P 500 fell Tuesday, after struggling to hold onto gains as investors remained wary of making big bets on stocks.