Former chief of Pakistan's spy agency Inter-Services Intelligence (ISI) Faiz Hameed was taken into custody by the country's powerful army in connection with a housing scheme scandal.