Afghan president reaches end of difficult first year