PM David Cameron says he would have accepted an offer of resignation from Rebekah Brooks if he were in charge at News International.