Peruvian judge orders 7 days of preventive detention for ex-president