A three-year-old British girl who was stabbed in a knife attack in the French Alps will be able to leave hospital in the coming days, prosecutors have said.