Rape trial delayed as jury is discharged due to mistake in court