Dynamical black holes in scalar-tensor theories