Prime Minister Theresa May has cancelled three contracts for ships to deal with any chaos in the event of a disorderly exit from the European Union.