Scholz closes in on German chancellorship as parties reach initial deal