The hydrodynamic force on a rigid particle undergoing arbitrary time-dependent motion at small Reynolds number