Planck intermediate results XIII. Constraints on peculiar velocities