Training diffusion models with federated learning