Observations of Galactic star-forming regions with the Cosmic Background Imager at 31 GHz