DataElixir: Purifying Poisoned Dataset to Mitigate Backdoor Attacks via Diffusion Models