The First Factory Act restricting the working hours of women and children and authorizing local government to make necessary rules was adopted during whose time?