Cordray to resign from CFPB, clouding future of watchdog agency