A Wigan man accused of stalking and attacking a woman, as well as breaching a restraining order, has walked free after the case was dismissed.