Congruences for partition functions