Judge remands Guatemalan ex-president into custody