Cauchy horizons in Gowdy spacetimes