July retail sales and Walmart gave a boost to retail sentiment, helping to drive a stock market rally.