.U.S. inventories increased, led by the tech-heavy Nasdaq Composite, after the July producer-price index showed that factory-gate inflation slowed a little from June.