Ramsay MacDonald becomes the first Labour prime minister