British Airways contacted affected customers as soon as it found out data from its website and mobile app had been breached, its boss said on Friday.