The president of the Royal Society has called for the UK government to underwrite the research of all UK-based researchers who apply for EU funding now.