Tree-structured Ising models can be learned efficiently