A curfew has come into force in Los Angeles as officials attempt to "stop the vandalism and stop the looting".