Danish police say more than 800 people have been arrested after violence followed a climate change rally.