Sri Lankan president to resign amid protests -official