Exhibit (d)(5) FORUM FUNDS INVESTMENT ADVISORY AGREEMENT