The deal will see Sky buy ITV’s terrestrial TV channels and streaming service ITVX.