Barty leaves the sport having won three Grand Slam singles titles, including at the most recent Australian Open