Ultrasonic studies of the magnetic phase transition in MnSi