25-year-old world No. 1 tennis player Ash Barty made a surprise announcement on Instagram saying she was retiring from the sport.