Continuum theory of dislocations and buckling in graphene