Farage hails party’s first electoral victory north of the Border after sparking row over diversity in Glasgow schools