Temasek , the investment fund controlled by the state of Singapore , has sold its 3.8 per cent stake in Bank of America , compounding big losses earned from its ill-fated investments in US and European banks last year .