AMENDED AND RESTATED AGREEMENT AND DECLARATION OF TRUST OF JOHN HANCOCK PREFERRED INCOME FUND