UK Brexit minister resigns