The Israeli army says it demolished dozens of tunnels belonging to Hamas that militants could use to carry out ground attacks in Israel.