Random matrix and clustering analysis of Hopfield networks as associative memories