Home secretary’s allies say it took her several hours to alert cabinet secretary to ‘error of judgment’