NRA's Wayne LaPierre resigns before corruption trial