Pakistani-origin teacher who was mocked by students loses race discrimination case against Scottish school