A former Wimbledon champion has been forced to pull out of the Australian Open just hours before she was due to take to the court.