‘Broken’ wards of courts system ‘depriving people of their liberty’