All city and town offices shall be kept open for the transaction of business during such days and hours as the municipal legislative authority shall by ordinance prescribe.