US President Donald Trump criticised climate activist Greta Thunberg, suggesting she has an "anger management problem" and should see a doctor.