A Note
This seems to be more of a culture problem more than a rules problem. Lindybeige has a video about this. It seems that RPG players (in general) jump to lethal force too often, and without any form of escalation to that lethal force. Once in combat, it is a race to 0 HP, with the winner suffering death by deadly death, because people have it in their head that combat is for making things dead.
A solution to this is to run combat is like some fights in the Princess Bride. Such combat involves characters who don't actually want to harm each other, but still have conflicting goals and therefore must use the skills available to them, be they martial, mental, or social. In short: once a character's goal is achieved, they need not do anything more. The Angry DM has a some blog posts about this approach to combat, and I find this advice valuable.
So, the simple, social fix is to allow people to bend rules to allow for deescalation.
That is not your question, though. So what can you do to de-escalate combat and follow RAW? It should be noted that DMs are the ultimate arbiters of when combat ends; the PCs simply take steps towards convincing the DM to end it.
The Disengage/Retreat Option
Yes, you just keep running until the aggressor simply gives up. In 5e, this is taking the "disengage" action as much as needed, and moving away. It deescalates combat by denying the opportunity to do damage.
The Diplomacy Option
This is one that gets a little dicey. Persuasion in 5e seems to be a bit vague, but this sort of thing would fall under "persuasion." In the basic rules, Persuasion is listed as the skill to "negotiate peace between warring tribes," p. 62. If these tribes are actually fighting as the negotiation takes place, it is silent on this.
Pointing out things like "killing me is against your goal" can de-escalate combat. Generally, this appears to be left up to DM judgement. "You don't need to fight me!" is certainly something that can be said in 6 seconds, so it is reasonable to use that argument within a round of combat.
Defensive Stances (Dodge), Nonlethal Damage
You could simply assume defensive stances, which is the "dodge" action, deflecting and parrying blows until the other side gives up. Most people would not consider this ideal, as assuming a defensive stance (dodge) in 5e only inflicts disadvantage, so you might still get damaged.
5e has the option to "pull" blows, allowing for creatures to be knocked unconscious. So you could go full-bore, combat mode and just pull (melee only) attacks when they're about to fall.
Knocking a Creature Out
Sometimes an attacker wants to incapacitate a foe, rather than deal a killing blow. When an attacker reduces a creature to 0 hit points with a melee attack, the attacker can knock the creature out. The attacker can make this choice the
instant the damage is dealt. The creature falls unconscious and is stable. (Basic Rules(2018) p. 79)
Spells?
You can use the variety of spells to interrupt or disable combatants so that you can deescalate well. A quick perusal of the 5e basic rules yields: command, sanctuary, dominate person, charm person, suggestion, or also spells like darkness, which can all be useful to hindering or deescalating combat.
Intimidation
This one is also a little tricky. Intimidate can be hard to pull off sometimes, and it is subject to a DM's judgement. Also in this same vein is to cause fear effects, which effectively makes opponents back down because of their own fear. Sometimes that's a spell thing, but sometimes a DM can grant "fear" status for particular actions.