Britain needs a transition period to soften its exit from the European Union, but it cannot be used to stop Brexit, two senior ministers said.