Spectral properties of Hankel matrices and numerical solutions of finite moment problems