The state’s Office for the Aging is turning to robots to try to reduce isolation in a cost-effective way as New York’s elderly population grows.