Existing-home prices rise in June but sales drop