Percolation of linear clusters in YBa2Cu3Ox: A tool for explaining the ortho-tetragonal phase transition