The city of Lopburi has rounded up and sterilised macaques after they became rampant.