People crossing Irish border after Brexit would have to register in advance, according to new plan being studied by Theresa May