Influence of non-Markovian relaxation processes on self-induced transparency: Memory function theory for optical solitons