Dominic Thiem won his fourth ATP title of 2019 by edging past Stefanos Tsitsipas in the China Open final in Beijing.