Calibration of colour gradient bias in shear measurement using HST/CANDELS data