How to separate sub-menu output and keep associated with parent

Register the navigation menu location in your theme’s functions.php file using the register_nav_menu() function, assign your custom menu to the location in Dashboard > Appearance > Menus, then use the wp_nav_menu() function in your theme’s template files to print the menu’s markup where appropriate.

Refer to the overview of Navigation Menus in the Codex.