Mahela Jayawardene has stepped down from the T20 captaincy following Sri Lanka's defeat to West Indies on Sunday.