Planck 2013 results. XI. All-sky model of thermal dust emission