The clerk of the city council of the city shall be ex officio treasurer of the city and shall be ex officio a member of the board of tax assessors of the city, and the duties of the office shall be prescribed by the mayor and city council. The clerk shall be required to give such bond and security as the city council may fix, conditioned upon faithful performance of the duties of treasurer of the city; provided, however, that the mayor and city council shall retain authority to separate by ordinance the office of clerk and treasurer, prescribe duties of each office, fix salaries, and require bonds and security.