Magnetic anisotropy and spin-glass behavior in spin-chain compound Ca3Co1.62Mn0.38O6