Planck intermediate results XVIII the millimetre and sub-millimetre emission from planetary nebulae