Cohomology and deformations of module homorphisms