A study of three-jet events at the CERN $$\bar pp$$ collider