Cosmological perturbation theory and quantum gravity