A defendant charged with rape and sexual assault offences against children has died, a court has heard.