This can be easily changed in the Divi Theme Options.ย
Go to WordPress Dashboard > Divi > Theme Options > Navigation > General Settings
โand enable the option called Disable top tier dropdown menu links. Here is a screenshot:
Disabling the link on top/parent menu item in case of dropdown menus