Home sales rose in May but buyers face sharply rising prices