Home Secretary Shabana Mahmood has said migrants will have to contribute to society and their local communities