Osborne warns it would not be "plain sailing" for the country following its decision to quit the EU.