Quantum Zeno and anti-Zeno effects on quantum and classical correlations