Brazilian food retailer GPA has reached an agreement with its main creditors for an out-of-court debt restructuring plan.