Robot pets, counseling for caregivers and other tools can help patients avoid costly nursing-home placement