David Lammy has been stripped of his role as foreign secretary, and given the job of justice secretary, along with the role of deputy PM.