Talks in Madrid enter their final day with serious divisions between large emitting countries and small island states