Scientists have mapped the genome of the native ash tree, in research to find a way to protect woodlands from a deadly fungus.