MDG: Masked Denoising Generation for Multi-Agent Behavior Modeling in Traffic Environments