Viral videos of unruly gatherings of young people are pushing city officials to deal with a problem they are having trouble defining, much less solve.