First drag and drop a tree model into the scene.Then add a capsule collider component to the tree and then create a prefab of it and save it. Then add this prefab as tree in the tree object of the terrain. Then paint around the trees and test it. That should give the trees collision.