Jaguar Land Rover (JLR) has said a shortage of aluminium putting the brakes on car production has dragged on its earnings in recent months.