Numerical analysis of a frictional contact problem for viscoelastic materials with long-term memory