Turkish president attends funeral of quake victims