On the order of the spin glass transitions in mean field theory