Peer-to-peer lending platform Funding Circle has secured £40m from the UK government to support small businesses amid concern that the Brexit vote could constrain credit.