DirecTV said on Monday that it had agreed to acquire Dish Network in a deal that would create one of the largest pay-TV providers in the US.