Number of homes facing foreclosure rose in July