Punjab signs pact to build small, intermediate dams