Gibraltar has been forced to stockpile emergency medicine in wartime bunkers underneath its famous rock, due to fears a hard border could restrict imports.