The government has unveiled plans for a new digital ID scheme, which will be mandatory to prove a person's right to work by the end of this Parliament.