The Palestinian president has accused Hamas of violating an agreement reached earlier this month on the political platform for a unity government .