Error Propagation and Model Collapse in Diffusion Models: A Theoretical Study