Comcast said it will separate into two publicly traded companies through a tax-free spinoff of NBCUniversal and Sky.