French milk producers and dairy companies have reached an agreement on milk price cuts, bringing to an end a dispute which has seen deliveries stopped and production plants blocked over the past month.