'Hamas signed unity pact from position of weakness'