The health effects of childhood adversity carry a huge economic burden, according to new research across Wales and England.