Dido Harding, the head of Sainsbury's convenience business, is leaving the UK retailer to take up the position of chief executive of telecommunications firm TalkTalk.