The BBC has apologised to parents and started an investigation after a memory stick containing the personal data of hundreds of children was stolen.