Regularity and stability for a class of nonlocal differential equations in Hilbert spaces