Raleigh's police chief to retire