Minimisers of a fractional seminorm and nonlocal minimal surfaces