Investors should not get too optimistic over the formation of the next German government, analysts warned.