UK government publishes summary of Brexit legal advice