Stocks tumbled on Tuesday, dragged lower by Walmart’s disappointing profit outlook.