Memory function approach to the dynamics of interacting Brownian particles