Tehran has been reactivating parts of its nuclear programme in protest at the US withdrawal from a 2015 nuclear deal.