Masked diffusion strategy for privacy-preserving distributed learning