After a poor start, Djokovic turned things around in the second half of the year to return to the summit of men’s tennis