Former head of family courts kills himself after dementia diagnosis