The future of Pizza Hut's restaurants in Britain has been salvaged after the business was sold out of insolvency proceedings to the brand's main partner in Denmark and Sweden.