Certainly you can retreat, we're not that mean. Simply click on the Return to World Map button to leave. Do keep in mind that leaving before the winner is decided requires paying a ransom for your units.
When you hover over the world map button you'll see what is required as payment -- it can be gold, resources (wood/food/stone), or units. It goes in that order until the required ransom value is paid.
Check out my Community FAQ guide!
Catch me ingame or drop me a PM If I can help.