Maria Sharapova admitted to failing a drug test taken at the Australian Open.