Australian pair Max Purcell and Jordan Thompson have suffered an agonising defeat in the semi-final of the doubles at the ATP Finals in Turin.