Egypt detains 12 officials for leaking final exams