Dynamical correlations and quantum phase transition in the quantum Potts model