CodeR: Issue Resolving with Multi-Agent and Task Graphs