Bail applications can fall within article 40 habeas corpus relief in ‘exceptional circumstances’, High Court finds