Former SAS soldier Ben Roberts-Smith has told a court that he hired a private investigator to find out whether a woman who has accused him of domestic violence had an abortion and to obtain the home addresses of six SAS soldiers set to give evidence in his defamation trial.