High-resolution spectroscopy of Rydberg states in an ultracold cesium gas