Magnetization study on the history-dependent peak effect in the superconducting mixed state of CeRu2