How can I stop my iPhone from “Cleaning” apps in the background?
You can't. It's up to the individual app to save the current context if the user switches to another app. Some apps handle this better than others, but in any case this issue needs to be addressed to the developers of the apps.