Trump agrees to visit Turkey after invitation from Turkish president, official says