Israel says ground operation in Gaza 'may take months'