Hospitals trust chief leaves post