Yahoo has said it believes hackers stole personal data from more than one billion user accounts as part of a cyber attack that occurred in 2013.