Britain and Germany's leaders agreed in Berlin on Wednesday to work on an ambitious treaty covering issues from defence to trade that would be part of a reset of British relations with the European Union.