Ebony Rainford-Brent says she sometimes questioned why she remained in cricket after being subjected to racist comments during her career in the sport.