On time-inconsistent investment and dividend problems