Millions of pounds of taxpayers’ money has been handed to cyber criminals in recent years, Britain’s security minister said as he unveiled proposals to combat ransomware attacks.