Nation struggles in aftermath of president’s refusal to pay to end cyber attack, even as hacking group collapsed