Planck view of the M 82 galaxy