Stellar mass assembly of brightest cluster galaxies at late times