Novak Djokovic continued his perfect record at the ATP Cup after beating Denis Shapovalov in two tight sets at Melbourne Cup.