Struggling French food co-op Unicopa is to be broken up after an agreement was struck with its banks and financial backers.