Planck 2013 results. XXVIII. The Planck Catalogue of Compact Sources