The FTSE 100 opened firmly higher but handed back all its gains to close lower at the end of trading.