The film and television giant will turn its cable networks, including CNN and TNT, into one company and its streaming and studios business into another.