Hamas denies accepting two-state solution