Obama warns mayors not to waste stimulus money