Ferguson signs pact to uphold freedom of the press