ROIC-DM: Robust Text Inference and Classification via Diffusion Model