Well-posedness and optimal decay rates for the viscoelastic Kirchhoff equation