British government realises Brexit is a mistake, official says