Cooperation of enzymatic and chaperone functions of trigger factor in the catalysis of protein folding