Iran's President Hassan Rouhani, addressing thousands in Tehran, says the country will continue to expand its ballistic missile programme.