On the assumption of initial factorization in the master equation for weakly coupled systems I: General framework