Stocks waver as Walmart, Facebook take hits