Capillarity induced folding of elastic sheets