Cut-price retail group The TJX Companies has reached a settlement with MasterCard International Inc over the company's computer security breach.