Semantically-correlated memories in a dense associative model