U.S. stocks eked out small gains as July came to a close Monday, booking a fifth consecutive monthly gain for the S&P 500 and Nasdaq Composite amid optimism over corporate earnings and a resilient ...