Man arrested after stalking ex-wife for months