Japan's economy grew faster than expected in the third quarter due to strong exports, posting the longest period of uninterrupted growth in more than a decade.