Wabtec is to close its British maintenance facility in Doncaster, South Yorkshire, with the loss of up to 300 jobs.