Use robots instead of hiring low-paid migrants, says shadow home secretary