A major town hall has admitted that officials saw groups of people trying to go into polling booths together and had to step in and tell them it was against the law.