Palestinians in Gaza are celebrating as a ceasefire has come into effect, after being delayed for more than two hours.