Iraqi premier hands resignation to parliament