Altice said to buy Cablevision in $17.7 billion deal