Pressure induced crossover of the magnetic transition from second to first order near the quantum critical point in MnSi