Leading swimwear producer Speedo is to close its manufacturing plant in Nottingham with the loss of 140 jobs as it moves production abroad.