A 53-year-old former soldier from Colchester who “persistently” contacted his ex-wife against a court order has been given a suspended sentence.