Fractality of wave functions on a Cayley tree: Difference between tree and locally treelike graph without boundary