Planck 2013 results. XIX. The integrated Sachs-Wolfe effect