President Donald Trump said White House Press Secretary Karoline Leavitt will leave the administration at the end of August to focus on her young family but remain closely involved as an outside adviser and influential Republican voice ahead of the midterms.