A police dispersal order is in place after hundreds of protesters gathered in Portsmouth.