Consumer watchdog chief Cordray resigns, names acting successor