Defence staff should 'erase their online lives'