Quantum effects in the early universe. I. Influence of trace anomalies on homogeneous, isotropic, classical geometries