Google, the US tech giant, has agreed to sell a majority stake in a global ad network it owns for $5bn to Facebook, marking the first major deal of its kind.The deal, expected to close in the second quarter of 2017, is the first of its type and the largest for Google, which owns ads…