A little girl whose arm pain was dismissed as a sprain has been given just weeks to live after her symptoms turned out to be a rare form of cancer.