Canadian Prime Minister will continue in role until party elects new leader for general election that must be held this year.