Christopher Ferguson, 37, was serving in Police Scotland when he carried out the abusive and violent offences.