Multi-agent Traffic Prediction via Denoised Endpoint Distribution