Walmart retreats from record as investors poke holes in earnings