Strictly Come Dancing judge Shirley Ballas moved her mother to a different home and increased security measures due to a stalker, a court has heard.