Planck early results. XXI. Properties of the interstellar medium in the Galactic plane