(5) If a person detained on suspicion of having committed an offence is not tried within a reasonable time, he shall be released either unconditionally or on reasonable conditions (including in particular conditions reasonably necessary to ensure that he appears for trial or for proceedings preliminary to trial).