FTSE 100 ends flat as weak materials, financials offset defensive gains