A 12-year-old boy died from a severe traumatic brain injury after falling through the roof of a farm building in Bishop Auckland, an inquest has heard.