Palestinian president rules out talks with Hamas