The French government has warned the country's major grocery retailers to abolish contracts that make it difficult for franchisees to switch chains and that prevent rivals from setting up on former sites.