UK, German relations ‘far better shape’ after ‘difficult’ Brexit period, leaders say