Luxury carmaker Ferrari trims forecasts after second-quarter profit falls