CLUMPY GALAXIES IN CANDELS. I. THE DEFINITION OF UV CLUMPS AND THE FRACTION OF CLUMPY GALAXIES AT 0.5 < z < 3