On a relation between the rank and the proportion of derangements in finite transitive permutation groups