Mass protests prompt Sri Lankan cabinet to resign