Sarah Ferguson, Duchess of York, has revealed that her late mother-in-law, Queen Elizabeth, urged her to "be yourself" before she died.