Wall Street is retreating from its record after a slide for Walmart weighed on US stock indexes.