Verizon has agreed to acquire Yahoo’s operating business in a $4.8 billion cash deal, sealing the fate of one of the internet’s pioneering giants.