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