An NHS trust has agreed to pay compensation after a woman, now in her 70s, discovered she had been swapped at birth.