Du Plessis posts 118, declares with South Africa at 259-9