Ex-British foreign minister warns against EU exit