Non-perturbative treatment of non-Markovian dynamics of open quantum systems