High-pressure study of the phase transition in the itinerant ferromagnet CoS2