A three-day period of mourning has been declared in Ramallah after hundreds were killed in a blast at a Gaza hospital.