Statistical limits of correlation detection in trees