Mean-Field Limit and Phase Transitions for Nematic Liquid Crystals in the Continuum