Modelling the quenching of star formation activity from the evolution of the colour-magnitude relation in VIPERS