Hamilton-Jacobi equations in Hilbert spaces