Physical properties and evolution of (sub-)millimetre-selected galaxies in the galaxy formation simulation shark