Kamala Harris and Donald Trump both accused each other of fuelling division in America as they faced off.