Planck intermediate results: XLIII. Spectral energy distribution of dust in clusters of galaxies