How Wales' ancient rainforests inspired folklore