A mass funeral has been held in Gaza for more than 100 people finally recovered from the site of an Israeli attack on an apartment block.