British Prime Minister Theresa May has said the UK will consider its next steps alongside its allies after Russia said it would expel 23 British diplomats.