The Indian Navy has banned navy personnel from using social media and smartphones at naval bases, dockyards and onboard warships.