Boohoo has sold off its London head office for £49.5 million to help pay down its debts.