Intel's stock rose 8% on Thursday after US President Donald Trump said the semiconductor company had agreed to a deal with Apple to design and build chips in the US.