Vigils have been held to mark the second anniversary of the Hamas attacks on Israel which killed more than 1200 people.