Theresa May becomes British prime minister after being appointed by Queen Elizabeth shortly after the monarch accepted David Cameron's resignation.