Former Formula One boss Bernie Ecclestone has said sorry for the controversial opinions he expressed on Vladimir Putin's invasion of Ukraine.