Dozens of countries were hit with a huge cyber-extortion attack on Friday that locked up computers and held users' files for ransom at a multitude of hospitals, companies and government agencies.