The mean-field limit of a network of Hopfield neurons with correlated synaptic weights