A tube fabrication company based in Caerphilly has been fined after a worker had a finger severed in machinery.