To make the main menu items or 'parents' in the menu non clickable. You can link them to a # as many people do as a work-a-around. You can also add this custom CSS.

#top-menu .menu-item-has-children>a:first-child {
pointer-events: none;
}