Existing-home sales decline in July