Role of anisotropic thermal conductivity in the reversed-field pinch dynamics