Man dies days after setting himself on fire in train