The palaeobiology of trace fossils