Infinite dimensional Hopfield neural networks