Malaysia will maintain ties with Hamas says PM Anwar Ibrahim