An Irish government report has revealed that around 9,000 children died in Ireland's church-run homes.