Link between geomagnetic reversal paths and secular variation of the field over the past 5 Myr