Meghan Markle and Prince Harry's chief communications officer has stepped down after the less than a year in the role.