A German court ordered pre-trial detention for 80-year-old former intelligence chief August Hanning following his arrest on suspicion of treason and espionage.