Marcelo Gallardo will leave River Plate when his contract ends in December after more than eight years at the club.