"The state of Berlin is being blackmailed," mayor Kai Wegner has told the state government after a cyberattack that came to light earlier this month.