Lyapunov functionals for certain linear delay differential equations in a Hilbert space