Karoline Leavitt, a 27-year-old former White House intern, has become the youngest White House press secretary in US history.