City leaders are working with social media companies and exploring new strategies to curb disruptive teen gatherings.