Viacom’s stock is off 37 percent this year, and it faces lower TV ratings, weak ad sales and a lackluster film slate. The shift has been dramatic.