Viacom’s investment in the company, which produces concerts and festivals aimed at teenagers, is a bid to stay relevant to a generation of social networking, online-streaming viewers.