Tesco is to hand £700 million back to shareholders using the proceeds of a now-completed sale of its banking business to Barclays.