A former police officer has avoided jail time after he admitted subjecting three colleagues to sexualised language and behaviour while on duty.