The federal government has agreed in principle to build a national memorial in Canberra in the wake of the Royal Commission into institutional child sex abuse.