Transition-metal distribution in kagome antiferromagnet CoCu3(OH)6Cl2 revealed by resonant X-ray diffraction