The former Republican strategist and Lincoln Project founder has some hard lessons for Conservatives and Labour alike