Tory party illegally collected data on ethnicity of 10m voters, MPs told