U.S. factory orders rise more than expected in July