BT inks deal to rescue embattled Talktalk