A controversial no-deal Brexit ferry contract awarded to a firm with no ships has been cancelled by the Department for Transport.