Lula vows accountability and rebuilding as new president of polarised Brazil