Pressure-induced change in the magnetic modulation of CeRhIn 5