Adverbs can function as conjuncts; 'therefore' is listed by Quirk & Greenbaum as a summative and resultative conjunct. I think you need some puntuation:
'I was hungry; therefore, I ate all the cake.' = 'I was hungry, and therefore I ate all the cake.'