Officers were forced to act after reports of anti-social behaviour in the Aberdeenshire town.