Planck intermediate results. XXIII. Galactic plane emission components derived from Planck with ancillary data