Justin Thomas wins PGA Championship after Mito Pereira falters