Existing-homes sales flat in July