A massive multi-million pound tax avoidance scheme exploited by rich individuals set on slashing their tax bills has been closed after HMRC secured a legal victory