Anelastic spectroscopy study of the charge order transition of LiMn2O4