Study of the e+e− to K+K− reaction in the energy range from 2.6 to 8.0 GeV