Japan's Toyota posts record profit as bet on hybrids pays dividends