Phase-dependent noise in Josephson junctions