U.S. construction spending slowed in July as market weakens