Employers are breaching official guidance by forcing staff to “needlessly” work in offices and other workplaces, the TUC has warned.