On a class of equations arising in linear viscoelasticity theory