Official figures also showed the world’s second largest economy grew at a faster pace than expected.