Planck 2015 results: XVIII. Background geometry and topology of the Universe