Purification of formaldehyde by distillation