Theresa May is set to succeed Prime Minister David Cameron, who resigned after the UK public voted to leave the European Union against his wishes.