Novak Djokovic freed from detention after winning legal fight over visa ahead of Australian Open