Hamas rejects new Ramallah government as illegitimate