BT Group agreed a takeover rescue deal to buy TalkTalk’s consumer and wholesale divisions out of administration