Novak Djokovic admits he was close to giving up the sport last year before turning his form around, as he was named Laureus sportsman of the year.