UK foreign secretary offers congratulations to US president-elect six years after branding him a ‘sociopath’