Ending funding for Age UK day clubs in York has sparked a row over whether it could have been avoided.