Small businesses are working harder but their productivity is waning, according to a survey by an accounting software firm.