Leavitt's departure comes as Trump faces steadily sinking poll numbers and the Republican Party risks defeat in the November midterm elections.