Jo Farrell said the national constabulary had ensured biological sex was recorded in cases involving rape and sexual offences since 2018.