Rationality of representation zeta functions of compact p-adic analytic groups