Iran swears in new hard-line president amid regional tension