The government said that Suella Braverman has left her job as part of a cabinet shuffle ahead of next year's election.