Lewis Hamilton has waved to a crowd of waiting fans as he drove a Ferrari Formula 1 car for the first time since joining the Italian team for the 2025 season.