Correlation functions of current-algebra theories on the torus