Verizon plans to announce on Monday an agreement to buy Yahoo for $5 billion, according to a source familiar with the matter