Comcast said it had abandoned its bid for most of the assets of Rupert Murdoch's Twenty-First Century Fox.