Richard Cordray resigns from the CFPB