Senegal's president says the delayed election to choose his successor will be held "as soon as possible", after the top court ruled that his attempt to delay it was unconstitutional.