Japanese lawmaker pushing women's rights resigns over affair