A stalker who subjected Strictly Come Dancing judge Shirley Ballas to a six-year campaign of harassment has been spared jail.