Preventing and treating depression