An 80-year-old woman who was set on fire as she returned home to her flat has died after spending more than two weeks fighting for her life.