The decision to transfer two dementia care homes to the private sector has caused controversy