Losing dimensions: Geometric memorization in generative diffusion