Agreements, including those for cooperative or joint administration of any functions or powers, may be made by any local government with any other local government, with the State, or with the United States, unless otherwise provided by law or charter. A city may transfer to the borough in which it is located any of its powers or functions unless prohibited by law or charter, and may in like manner revoke the transfer.