The results for the lenders, two of France’s largest banks, came as their retail divisions reported improved results.