Israel says dismantling Hamas to take ‘more than a few months’