Boris Johnson’s government is considering imposing direct rule in Northern Ireland in the event of a no-deal Brexit, a senior minister had admitted.