A multi-frequency radio continuum study of the galaxy M 101