Hundreds detained at anti-war protests