Trees with Hamiltonian square