Cohen-Macaulay binomial edge ideals of cactus graphs