Large groups of youths have been throwing fireworks, bricks and bottles at police in Edinburgh, during a night of disorder across the city.