Novak Djokovic won his third consecutive ATP World Tour Finals title on a walkover after Roger Federer pulled out ahead of their trophy match in London due to a back injury.