Duplicity of late B-type stars