Planck 2013 results. XXVI. Background geometry and topology of the universe