The US has been downgraded to a “flawed democracy,” but not just because of Trump