A dynamic programming approach in hilbert spaces for a family of applied delay optimal control problems