Wayne LaPierre, NRA leader, resigns just before corruption trial