UK opposition parties agree to work together to stop no-deal Brexit