Boris Johnson advisor resigns over comments linking race and intelligence