The full closure of the UK's borders has been "considered" by the government amid concerns about new COVID variants being imported from abroad, a minister has revealed.