The British government has scaled back plans for mandatory digital ID cards, initially proposed as a way of helping control immigration.