Is your soil stack internal or external?
We had similar weird things happen. Turned out that because the soil stack was internal (and finished in the loft) … the air admittance valve in the loft had failed. Once replaced everything drained correctly.
If your soil stack is external this won’t apply.