World No 1 Novak Djokovic was pushed harder than expected by a valiant Frances Tiafoe before claiming his place in the third round