Wavefunctions of one-dimensional incommensurate Hamiltonians: the fractal dimension and its relationship with localisation