Hurwitz spaces and divisors on moduli spaces of curves