Agent Planning with World Knowledge Model