Former England captain Sir Alastair Cook says the current enforced break from domestic cricket could help to prolong his career.