German parties agree to start formal coalition talks