The FTSE 100 index hit a record high in May, but weakened towards the end of 2024