GTC OSIRIS transiting exoplanet atmospheric survey: detection of potassium in HAT-P-1b from narrow-band spectrophotometry