Germany has told its citizens to stock up on water and food in the event of a national catastrophe.