MoneyGram has confirmed that hackers stole customers’ personal information and transaction data in a September cyberattack that caused a five-day outage.