Locally symmetric $K$-contact Riemannian manifolds