Trump says chief of staff John Kelly will leave his job at end of the year