The R&A has introduced new rules to determine the eligibility of transgender athletes to compete in its professional and elite amateur championships.