UK confectionery wholesaler Hancocks Group has been sold in a management buy-out backed by H2 Equity Partners.