Factorized Diffusion Architectures for Unsupervised Image Generation and Segmentation