Go to System → Settings → Checkout

Allow Customer to Cancel Order on selected statuses. 

Select one or several Order Statuses to allow customer request order cancellation on the order page. In addition you can set how many days after order placement customer able to proceed request.