Novak Djokovic struggled in the hot conditions and was ousted from Cincinnati Open in his first match since Wimbledon.