No building shall hereafter be erected, moved, or altered so as to accommodate or house a greater number of families than is specified in the regulations herein for the district in which the building is or is to be located.