How does stress affect the brains function to perceive and handle problems especially in traumatic experience?