IT contractors, oil and gas workers, locum doctors, social workers and nurses who took advice from accountants, recruitment firms and tax advisers face unexpected tax demands.