A radio continuum survey of nearby galaxies. I - Observations at 0.4, 0.8, 4.8, and 10.7 GHz