A watchdog is to investigate Twitter after a hacker claimed to have private details linked to more than 400 million accounts.