On the capacity of constrained connectivity Hopfield neural networks