Counterterrorism police have taken over an investigation into suspected anti-Muslim violence in Edinburgh, Scotland.