New AI technology could predict when staff in social care are about to leave