Sir Keir Starmer will gather with leaders of the US, France and Germany to discuss the war in Ukraine and spiralling conflict in the Middle East as he visits Berlin on Friday.