Australia's Nick Kyrgios is free to return to tennis after anti-doping authorities ruled that his positive test for cocaine had been conducted out of competition.