Attractors for a damped hyperbolic equation with linear memory