The Dow Jones Industrial Average struggled on Tuesday after Walmart indicated that consumer spending may have stalled.