Go to the System Preferences and click on Sharing. In the list on the left click on 'File Sharing' then there is a little button on the top right called 'options'. In the drop-down that appears check that SMB sharing is un-ticked.
You might also untick printer sharing.
See if that helps.