Angela Rayner has resigned as deputy prime minister and housing secretary after admitting she did not pay enough stamp duty on her second home.