Fermion number fractionalisation and phase transition: A lattice study☆