The Duke and Duchess of Sussex's dramatic decision to quit their roles as senior royals comes after a turbulent year.