Turkiets president Recep Tayyip Erdogan säger att terrorstämplade Hamas är ”befriare” som kämpar för mark, under ett tal i parlamentet.