A Ballymena man faces up to 10 years in jail after he admitted stalking his ex-partner.