U.S. stocks closed mixed as the markets appeared cautious ahead of a flood of July inflation data over the course of the next few days.