The BBC has announced a data breach affecting 25,000 current and former employees of the companies pension scheme.