Confectioner Cadbury has hailed a victory in its legal battle with Nestle over the use of the distinctive purple colour it uses in its branding.