Dozens of Russian companies and government agencies have been hacked in apparent retribution for the invasion of Ukraine.