European economies dominated the ranks of the world's most innovative countries, but China was fast closing the gap, according to a study.