The Picard groups of the moduli space of curves