Cosmological horizons and the generalised second law of thermodynamics