Semialgebraic Statistics and Latent Tree Models