Robotic pets that respond to human interaction can benefit the health and wellbeing of older people living in care homes, a new study has found.