The American company agrees a deal to buy the Daily and Sunday Telegraph newspapers after a two-year ownership vacuum.