An army of anarchists in black clothing and masks routed a small group of right-wing demonstrators who had gathered in a Berkeley park Sunday to rail against the city’s famed progressive politics, driving them out — sometimes violently — while overwhelming a huge contingent of police officers.