.U.S. stocks increased, led by the tech-heavy Nasdaq Composite, after the July producer-price index demonstrated that factory-gate inflation slowed somewhat from June.