Lily James is to play the lead role in a new film inspired by the story of Whitney Wolfe Herd, the billionaire founder of the dating app Bumble.