How was the Weimar Republic governed?